#define _CRT_SECURE_NO_WARNINGS 1
//#include <stdio.h>
//#define MY_OFFSETOF(s, m) ((size_t)&(((s*)0)->m))
//typedef struct 
//{
//	short a;
//	int b;
//}Stu;
//int main()
//{
//	printf("%d\n", MY_OFFSETOF(Stu, b));
//	return 0;
//}


#include <stdio.h>
#include <stddef.h>
#define SWAP_BIT_INT(n) ((((n) & 0x55555555 ) << 1)|(((n) & 0xaaaaaaaa) >> 1))
int main()
{
	int n = 13;
	int ret = SWAP_BIT_INT(n);
	printf("%d\n", ret);
	return 0;
}
